package studentManagement;

public class Student {
	private int id;
	private String classes;
	private String name;
	private int score;

	public Student() {
		this(0, "None", "None", 0);
	}

	public Student(int id, String classes, String name, int score) {
		this.id = id;
		this.name = name;
		this.score = score;
		this.classes = classes;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public double getScore() {
		return score;
	}

	public void setScore(int score) {
		this.score = score >= 0 || score <= 100 ? score : 0;
	}

	public String getClasses() {
		return classes;
	}

	public void setClasses(String classes) {
		this.classes = classes;
	}

	public String toString() {
		return id + "\t" + classes + "\t" + name + "\t" + score;
	}

}
